package com.cjl.eater.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/17 14:03
 */


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "EaterFoodRelations",description = "食客-菜品关系表")
@TableName("eater_food_relations")
public class EaterFoodRelations {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键，唯一标识，雪花算法，全局唯一")
    private Long id;


    @TableField("eater_id")
    @ApiModelProperty("食客id")
    private Integer eaterId;

    @TableField("food_id")
    @ApiModelProperty("菜品id")
    private Integer foodId;

    @TableField("updated_time")
    @ApiModelProperty("操作时间")
    private Date updatedTime;

    @TableField("love")
    @ApiModelProperty("喜欢")
    private Integer love;

    @TableField("collect")
    @ApiModelProperty("收藏")
    private Integer collect;
}
